/*
 * @Descripttion:
 * @Author: xiaodong
 * @Date: 2020-12-21 10:01:30
 * @LastEditTime: 2021-03-03 15:38:22
 * @FilePath: \cloud-monitor-server\src\configs\redis.js
 */
// redis 配置。 redis 使用参见 http://devdocs.io/redis/
import env from "~/src/configs/env";

// 本地环境配置
const local = {
  host: "127.0.0.1",
  port: "6379",
  password:'',
  db: 2,
};
// 开发环境配置
const development = {
  host: "172.31.15.9:6379",
  port: "6379",
  password:'9f776b5be306aaac29b423d9f',
  db: 2,
};
// 测试环境配置
const test = {
  host: "172.31.10.9:6379",
  port: "6379",
  password:'3ee62e7d5992c3897cf5be949',
  db: 2,
};
const vprod = {
  host: "172.31.10.9:6379",
  port: "6379",
  password:'Ge034R6d78v0dbb0f94U5498cd',
  db: 2,
};

// 线上环境配置
const prod = {
  host: "172.31.10.9:6379",
  port: "6379",
  password:'pm9e5u@0fMIqS2&nHxA_hmVT',
  db: 2,
};;

let config = {
  local,
  development,
  test,
  vprod,
  prod,
};

export default config[env];
